<div class="btn-group">
<?php
$dir="/var/www/html/chuanmeiDD/res/";
$file=scandir($dir);
echo '<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="text-align:right">
        调度IP检测
        <span class="caret"></span></button>';
echo '<ul class="dropdown-menu">';
foreach ($file as $name){ 
	if (strpos($name,".html")!==false and $name!=='CMDD.html' and $name!=='.html' and strpos($name,"域名")==false and strpos($name,"调度新增检测")==false) {
		//printf('<option value="%s">%s</option> ',$name,$name);
		printf('<li><a class="CMDDIP" href="#" onclick=\'$("#selBT").val("failed");$("#selBT").text("显示failed");$("#DD").load("/chuanmeiDD/res/%s");setTimeout(function () { $("table").attr("id","mytab"); }, 500);setTimeout(function () { $("table").addClass("table-bordered table-hover table-striped"); }, 500);   \'>%s</a></li>',$name,strstr( $name, '.', TRUE));
			//setTimeout(function () { $("table").attr("id","mytab"); }, 2000);  
	}	
}
echo "</ul>";
?>
</div>
<div class="btn-group">
<?php
$dir="/var/www/html/chuanmeiDD/res/";
$file=scandir($dir);
echo '<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="text-align:right">
        CDN域名检测
        <span class="caret"></span></button>';
echo '<ul class="dropdown-menu">';
foreach ($file as $name){ 
	if (strpos($name,".html")!==false  and strpos($name,"域名")!==false) {
		//printf('<option value="%s">%s</option> ',$name,$name);
		printf('<li><a class="CMDDDomain" href="#" onclick=\'$("#selBT").val("出网");$("#selBT").text("显示出网的域名");$("#DD").load("/chuanmeiDD/res/%s");setTimeout(function () { $("table").attr("id","mytab"); }, 500);setTimeout(function () { $("table").addClass("table-bordered table-hover table-striped"); }, 500);  \'>%s</a></li>',$name,strstr( $name, '.', TRUE));
			//setTimeout(function () { $("table").attr("id","mytab"); }, 2000);  
	}	
}
echo "</ul>";
?>
</div>
<div class="btn-group">
<?php
$dir="/var/www/html/chuanmeiDD/res/";
$file=scandir($dir);
echo '<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" style="text-align:right">
        调度新增检测
        <span class="caret"></span></button>';
echo '<ul class="dropdown-menu">';
foreach ($file as $name){ 
	if (strpos($name,".html")!==false  and strpos($name,"调度新增检测")!==false) {
		//printf('<option value="%s">%s</option> ',$name,$name);
		printf('<li><a class="CMDDnew" href="#" onclick=\'$("#selBT").val("不存在");$("#selBT").text("显示新增调度IP");$("#DD").load("/chuanmeiDD/res/%s");setTimeout(function () { $("table").attr("id","mytab"); }, 500);setTimeout(function () { $("table").addClass("table-bordered table-hover table-striped"); }, 500);   \'>%s</a></li>',$name,strstr( $name, '.', TRUE));
			//setTimeout(function () { $("table").attr("id","mytab"); }, 2000);  
	}	
}
echo "</ul>";
?>
</div>

	
    
